@import './uploadImage.scss';
@import './myImage.scss';
@import './category.scss';

:root{
  --image-width: 260px;
  --image-height: calc(var(--image-width) * 0.62);
}
.yun-image{
  width: 100%;
  height: 100%;
  min-width: 1000px;
  position: relative;
}

// 复用组件的css写在这个下面

.image-element{
  border: 3px solid #A8ABB2;
  margin: 5px 0;
  height: var(--image-height);
  width: var(--image-width);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  .n-image{
    width: 100%;
    img{
      width: 100%;
    }
  }
  .header-option, .bottom-option{
    position: absolute;
    width: 100%;
    background-color:  #494a4ca8;
    text-align: center;
    .preview, .copy-link{
      color: #f8ba00;
      text-decoration: none;
    }
    .preview:hover, .copy-link:hover{
      cursor: pointer;
    }
  }
  .header-option{
    font-size: 14px;
    top: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    .el-icon{
      color:  #f8ba00;
    }
    .el-icon:hover{
      color:  white;
      cursor: pointer;
    }
  }
  .bottom-option{
    font-size: 14px;
    bottom: 0;
    display: flex;
    justify-content: space-around;
    .delete{
      cursor: pointer;
      color: red;
    }
  }

  .operation-container{
    display: none;
    left: 0;
    bottom: 10px;
    position: absolute;
  }
}

.image-element-out-animation{
  animation-name: flipOutY; 
  animation-duration: .5s;
}

.image-operate{
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: rgba(148, 144, 137, 0.493);
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  
  .content{
    width: 600px;
    height: 400px;
    border-radius: 20px;
    background-color: white;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    .el-icon{
      position: absolute;
      right: 10px;
      top: 10px;
      font-size: 20px;
      color: #606266;
    }
    .el-icon:hover{
      color: black;
      cursor: pointer;
    }
    .info{
      width: 100%;
      text-align: center;
      margin-bottom: 20px;
    }
    .info-belong{
      color: #529b2e;
    }
    .info-none{
      color:  #c45656;
    }
    .select{
      width: 100%;
      text-align: center;
      margin-bottom: 20px;
    }
    .el-button{
      width: 60%;
      font-size: 25px;
      height: 40px;
    }
  }
}

.create-category{
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: rgba(148, 144, 137, 0.493);
  display: flex;
  justify-content: center;
  align-items: center;
  .content{
    width: 600px;
    height: 400px;
    border-radius: 20px;
    background-color: white;
    position: relative;
    padding-top: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    .el-icon{
      position: absolute;
      right: 10px;
      top: 10px;
      font-size: 20px;
      color: #606266;
    }
    .el-icon:hover{
      color: black;
      cursor: pointer;
    }
    .el-form{
      width: 90%;
    }
    .el-button{
      width: 90%;
      font-size: 25px;
      height: 40px;
    }
  }
}

.operate-share{
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: rgba(148, 144, 137, 0.493);
  display: flex;
  justify-content: center;
  align-items: center;
  .content{
    width: 600px;
    height: 400px;
    border-radius: 20px;
    background-color: white;
    position: relative;
    display: flex;
    justify-content: center;
    align-content: space-around;
    flex-wrap: wrap; 
    .title{
      margin: 0;
      width: 100%;
      text-align: center;
    }
    .el-icon{
      position: absolute;
      right: 10px;
      top: 10px;
      font-size: 20px;
      color: #606266;
    }
    .el-icon:hover{
      color: black;
      cursor: pointer;
    }
    .el-scrollbar{
      width: 100%;
      height: 70%;
      .links{
        .link-in{
          animation-name: bounceInLeft;
          animation-duration: 1s;
        }
        .link-out{
          animation-name: bounceOutLeft;
          animation-duration: 1s;
        }
        .link{
          width: 100%;
          display: flex;
          align-items: center;
          justify-content: space-around;
          margin-bottom: 5px;
          .url{
            width: 60%;
            text-overflow: ellipsis;
            overflow: hidden;
            white-space:nowrap;
          }
          .url:hover{
            color: #db0f0f;
          }
          .el-button{
            height: 20px;
            font-size: small;
          }
        }
      }
    }
    .new-share{
      font-size: larger;
      height: 40px;
    }
  }
}